From: Alexander Larsson Date: Wed, 23 Feb 2011 10:09:46 +0000 (+0100) Subject: No need to Check for grabbed menus on hot corner enter/click X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~8891 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=e3511127c701dd8691ec0e9bf2c4383c82bdad47;p=gnome-shell.git No need to Check for grabbed menus on hot corner enter/click We never get enter events anyway due to the menu code, and if the user clicks on a non-menu the menu is removed and ungrabbed before the target actor gets the event anyway. https://bugzilla.gnome.org/show_bug.cgi?id=642881 --- diff --git a/js/ui/panel.js b/js/ui/panel.js index 4cedb442b..c331f4dff 100644 --- a/js/ui/panel.js +++ b/js/ui/panel.js @@ -1040,8 +1040,6 @@ Panel.prototype = { }, _onHotCornerEntered : function() { - if (this._menus.grabbed) - return false; if (!this._hotCornerEntered) { this._hotCornerEntered = true; if (!Main.overview.animationInProgress) { @@ -1055,8 +1053,6 @@ Panel.prototype = { }, _onHotCornerClicked : function() { - if (this._menus.grabbed) - return false; if (!Main.overview.animationInProgress) { this._maybeToggleOverviewOnClick(); }